package com.mall.server.controller;

import com.mall.commons.R;
import com.mall.server.service.PrefrenceAreaService;
import com.tanhua.model.domain.CmsPrefrenceArea;
import com.tanhua.model.domain.PmsProductAttribute;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@CrossOrigin
@RestController
@RequestMapping("/prefrenceArea")
public class PrefrenceAreaController {

    @Autowired
    private PrefrenceAreaService prefrenceAreaService;

    /**
     * 获取所有商品优选
     * @return
     */
    @GetMapping("/listAll")
    public R listAll(){
        List<CmsPrefrenceArea> prefrenceAreaList= prefrenceAreaService.listAll();
        return R.success(prefrenceAreaList);
    }




}

